package com.abu.provider.service.impl;

import com.abu.provider.ProviderService;
import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.apache.dubbo.config.annotation.DubboService;


/**
 * @Author liu kang
 * @Date 2021/08/11 16:04
 * @Description
 */
// 将这个类中的方法（服务），对外暴露。包括ip,端口,访问路径
@DubboService
public class ProviderServiceImpl implements ProviderService {

    @NacosValue(value = "${name}",autoRefreshed = true)
    private String name;

    @Override
    public String getOne() {
        return name;
    }

}
